<!DOCTYPE html>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<jsp:include page="/common/commonCss.jsp" />
<jsp:include page="/common/commonJs.jsp" />
<script type="text/javascript" src="${basePath }commonJs/tags/My97DatePicker/WdatePicker.js"></script>
<title>K3同步</title>
<script type="text/javascript">
	$(document).ready(function() {
		updateResData();
		cancelResData();
		completedResData();

	});

	
	/**K3对接确认*/
	function k3docking(){
		var brankId = $("#fkBranId").val;
		var confirmTime = $("#confirmTime").val;
		if(brankId != null || brankId != '' || confirmTime != null || confirmTime != ''){
			$("#form_enter").submit();
		}else{
			alertInfo("所属门店 或 对接日期 不能为空！");
		}
	}

	
	function download()
    {
		var syncDate = $("#confirmTime").val();
		$("#confirmTime").val(syncDate);
  			$("#form").submit();
  
      	}

	/**显示修改的预约数据*/
	function updateResData(){
		 var arr=[];
		 var payRecord;
		<c:forEach items="${updateReservation}" var="item" varStatus="status" >
		arr.push('<tr><td>${item.PK_PARRES_ID}</td>');
		<c:choose>
			<c:when test="${item.GRP_FLAG=='0'}">
				 arr.push('<td>派对</td>');
			</c:when>
			<c:otherwise>
			     arr.push('<td>团体</td>');
			</c:otherwise>
		 </c:choose>
		arr.push('<td>${item.SUBJECT}</td>');
		arr.push('<td>${item.RES_MEM_CNT}</td>');
		arr.push('<td>${item.AMOUNT}</td>');
		payRecord="${item.payRecord}";
	    payRecord=payRecord.split(",");
	    arr.push('<td>'+payRecord.sum()+'</td>');
	    arr.push('<td>'+payRecord[0]+'</td></tr>');
		</c:forEach>
		var reservationData = document.getElementById("reservationData");
		reservationData.innerHTML=arr.join('');
	}
	/*取消预约的数据*/
	function cancelResData(){
		 var arr=[];
		 var returnMoney;//退回金额
		 var  paidMoney;//yifujine
		<c:forEach items="${cancelReservation}" var="item" varStatus="status" >
		arr.push('<tr><td>${item.PK_PARRES_ID}</td>');
		<c:choose>
			<c:when test="${item.GRP_FLAG=='0'}">
				 arr.push('<td>派对</td>');
			</c:when>
			<c:otherwise>
			     arr.push('<td>团体</td>');
			</c:otherwise>
		 </c:choose>
		arr.push('<td>${item.SUBJECT}</td>');
		arr.push('<td>${item.RES_MEM_CNT}</td>');
		arr.push('<td>${item.returnMoney}</td>');
		paidMoney="${item.paidMoney}";
		returnMoney="${item.returnMoney}";
	    arr.push('<td>${item.paidMoney}</td>');
	    arr.push('<td>'+(parseFloat(returnMoney)+parseFloat(paidMoney))+'</td></tr>');
		</c:forEach>
		var cancelReservation = document.getElementById("cancelReservation");
		cancelReservation.innerHTML=arr.join('');
	}
	
	/**已经结算的派对团体*/
	function completedResData(){
		 var arr=[];
		 var moneyList;//付款信息
		<c:forEach items="${completedReservation}" var="item" varStatus="status" >
		arr.push('<tr><td>${item.PK_PARRES_ID}</td>');
		<c:choose>
			<c:when test="${item.GRP_FLAG=='0'}">
				 arr.push('<td>派对</td>');
			</c:when>
			<c:otherwise>
			     arr.push('<td>团体</td>');
			</c:otherwise>
		 </c:choose>
		arr.push('<td>${item.SUBJECT}</td>');
		arr.push('<td>${item.RES_MEM_CNT}</td>');
		arr.push('<td>${item.AMOUNT}</td>');
		moneyList="${item.moneyList}";
		moneyList=moneyList.split(",");
		arr.push('<td>'+moneyList.sum()+'</td>');
		arr.push('<td>'+moneyList[0]+'</td>');
		arr.push('<td>${item.ornament}</td>');
		arr.push('<td>${item.performance}</td></tr>');
		</c:forEach>
		var completedReservation = document.getElementById("completedReservation");
		completedReservation.innerHTML=arr.join('');
	}
	    //数组求和函数
	    Array.prototype.sum = function(){
	        var sum = 0;
	        for(var i = 1;i<this.length;i++)
	        {
	          sum += parseFloat(this[i]);
	        }
	        return sum;
	 }

</script>
</head>
<body class="bg">
	<div class="content m_auto">
		<div class="content_l mt10">
			<ul>
	    		<shiro:hasPermission name="k3/findSyncList.shtml">
	        		<li class="content_hover"><a href="${basePath}k3/findSyncList.shtml"><i class="nav_icon_u"></i><br>K3对接</a></li>
	       		</shiro:hasPermission>
       		 </ul>
		</div>
		<div class="content_r mt10">
			<!---- 内容 --->
			<div class="p20">
			<form action="${basePath}k3/addK3Dock.shtml" method="post" id="form_enter">
				<div class="file_single_dl_p fixed">
					<dl>
						<dd><label>所属门店：</label>
							${branName }
							<input type="hidden" id="fkBranId" name="fkBranId"  value="${branId }" >
						</dd>
						<dd>
							<label>对接日期：</label> 
							${syncDate }
							 <input type="hidden" id="confirmTime" name="confirmTimeStr"  value="${syncDate }" >
						</dd>
						<dd>
							<label>对接状态：</label>
						</dd>
						<dd>
							<label>确认时间：</label>
						</dd>
						<dd>
							<label>最近对接时间：</label>
						</dd>
						<dd>
							<label>尝试次数：</label>
						</dd>
						<dd>
							<label>未完成记录数：</label>
						</dd>
						<dd>
							<label>完成时间：</label>
						</dd>
						<dd style="width: 455px;" class="fr">
							<input type="button" class="btn ml10 fr" value="返回" onClick="javascript:window.location.href='${basePath}k3/findSyncList.shtml'">
							<input type="button" class="btn ml10 fr" value="K3对接确认" onclick="k3docking()">
							<form action="${basePath}k3/downLoad.shtml"  method="post" id="form">
							<input type="button" class="btn ml10 fr" value="数据导出" onclick="download()">
							<input type="hidden" name="syncDate" id="syncDate1">
							</form>
						</dd>
					</dl>
				</div>
			</form>
				<div class="tab_normal mt10">
					<ul id="tab_a" class=" fixed">
						<li class="thistab_a">单次票</li>
						<li>会籍</li>
						<li>储值</li>
						<li>派对团体</li>
						<li>课程</li>
						<li>商品销售</li>
						<li>礼券</li><!-- 
						<li>付款申请</li> -->
					</ul>
					<ul id="tab_conbox_a" class="fixed">
						<li class="p10" style="display: none;">
							<h2 class="h2">单次票购买</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="400px"></col>
									<col width="400px"></col>
									<col></col>
									<tbody>
										<tr>
										<td>类型</th>
										<th>数量</th>
										<th>金额</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="400px"></col>
										<col width="400px"></col>
										<col></col>
										<tbody>
											<c:forEach items="${singleTicketList }" var="item">
											<tr>
												<td>${item.PRD_NAME}</td>
												<td>${item.COUNTS}</td>
												<td>${item.SUM_PRICE}</td>
											</tr>
											</c:forEach>
										</tbody>
									</table>
								</div>
							</div>
						</li>
						<li class="p10" style="display: none;">
							<h2 class="h2">新增会籍</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="400px"></col>
									<col width="400px"></col>
									<col></col>
									<tbody>
										<tr>
										<th>会员类型</th>
										<th>数量</th>
										<th>金额</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="400px"></col>
										<col width="400px"></col>
										<col></col>
										<c:forEach items="${addMemberList }" var="item">
											<tr>
											<td>${item.PRD_NAME}</td>
											<td>${item.COUNTS}</td>
											<td>${item.SUM_PRICE}</td>
											</tr>
										</c:forEach>
									</table>
								</div>
							</div>
							<h2 class="h2">会员费分摊</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="125px"></col>
									<col width="125px"></col>
									<col width="125px"></col>
									<col width="125px"></col>
									<col width="125px"></col>
									<col width="125px"></col>
									<col width="125px"></col>
									<col></col>
									<tbody>
										<tr>
										<th>会员</th>
										<th>姓名</th>
										<th>会员类型</th>
										<th>是否续会</th>
										<th>会员费</th>
										<th>生效日期</th>
										<th>失效日期</th>
										<th>是否停卡</th>
										<th>当日收入</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="125px"></col>
										<col width="125px"></col>
										<col width="125px"></col>
										<col width="125px"></col>
										<col width="125px"></col>
										<col width="125px"></col>
										<col width="125px"></col>
										<col></col>
										<c:forEach items="${avgMemberList }" var="item">
											<tr>
											<td>${item.FK_MEM_ID}</td>
											<td>${item.MEM_NAME}</td>
											<td>${item.PRD_NAME}</td>
											<td>${item.EXTCPN_FLAG}</td>
											<td>${item.DIS_PRICE}</td>
											<td>${item.START_DATE}</td>
											<td>${item.END_DATE}</td>
											<td>${item.SUSPEND}</td>
											<td>${item.INCOME}</td>
											</tr>
										</c:forEach>
									</table>
								</div>
							</div>
							<h2 class="h2">退会</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="125px"></col>
									<col width="125px"></col>
									<col width="125px"></col>
									<col width="125px"></col>
									<col width="125px"></col>
									<col width="125px"></col>
									<col width="125px"></col>
									<col></col>
									<tbody>
										<tr>
										<th>会员</th>
										<th>姓名</th>
										<th>会员类型</th>
										<th>是否续会</th>
										<th>会员费</th>
										<th>生效日期</th>
										<th>失效日期</th>
										<th>是否停卡</th>
										<th>当日收入</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="125px"></col>
										<col width="125px"></col>
										<col width="125px"></col>
										<col width="125px"></col>
										<col width="125px"></col>
										<col width="125px"></col>
										<col width="125px"></col>
										<col></col>
										<c:forEach items="${retMemberList }" var="item">
											<tr>
											<td>${item.FK_MEM_ID}</td>
											<td>${item.MEM_NAME}</td>
											<td>${item.PRD_NAME}</td>
											<td>${item.EXTCPN_FLAG}</td>
											<td>${item.DIS_PRICE}</td>
											<td>${item.START_DATE}</td>
											<td>${item.END_DATE}</td>
											<td>${item.SUSPEND}</td>
											<td>-${item.INCOME}</td>
											</tr>
										</c:forEach>
									</table>
								</div>
							</div>
						</li>
					
						<li class="p10" style="display: none;">
							<h2 class="h2">新增储值</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="300px"></col>
									<col width="300px"></col>
									<col></col>
									<tbody>
										<tr>
										<th>会员\非会员</th>
										<th>是否会员</th>
										<th>储值金额</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="300px"></col>
										<col width="300px"></col>
										<col></col>
										<c:forEach items="${rechargeList }" var="item">
											<tr>
											<td>${item.PK_MEM_ID}</td>
											<td>${item.MEM_TYPE}</td>
											<td>${item.DIS_PRICE}</td>
											</tr>
										</c:forEach>
									</table>
								</div>
							</div>
							<h2 class="h2">储值消费</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="200px"></col>
									<col width="200px"></col>
									<col width="200px"></col>
									<col width="200px"></col>
									<col></col>
									<tbody>
										<tr>
											<th>会员\非会员</th>
											<th>是否会员</th>
											<th>订单编号</th>
											<th>订单金额</th>
											<th>储值付款金额</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="200px"></col>
										<col width="200px"></col>
										<col width="200px"></col>
										<col width="200px"></col>
										<col></col>
										<c:forEach items="${rcList }" var="item">
											<tr>
											<td>${item.PK_MEM_ID}</td>
											<td>${item.MEM_TYPE}</td>
											<td>${item.ORDER_AMOUNT}</td>
											<td>${item.PK_ORDER_ID}</td>
											<td>${item.AMOUNT}</td>
											</tr>
										</c:forEach>
									</table>
								</div>
							</div>
							<h2 class="h2">储值消费退款</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="200px"></col>
									<col width="200px"></col>
									<col width="200px"></col>
									<col width="200px"></col>
									<col></col>
									<tbody>
										<tr>
										<th>会员\非会员</th>
										<th>是否会员</th>
										<th>订单金额</th>
										<th>退货金额</th>
										<th>储值退款金额</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="200px"></col>
										<col width="200px"></col>
										<col width="200px"></col>
										<col width="200px"></col>
										<col></col>
										<c:forEach items="${rcrList }" var="item">
											<tr>
											<td>${item.PK_MEM_ID}</td>
											<td>${item.MEM_TYPE}</td>
											<td>${item.ORDER_AMOUNT}</td>
											<td>${item.PK_ORDER_ID}</td>
											<td>${item.AMOUNT}</td>
											</tr>
										</c:forEach>
									</table>
								</div>
							</div>
							<h2 class="h2">余额退款</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="125px"></col>
									<col width="125px"></col>
									<col width="125px"></col>
									<col width="125px"></col>
									<col width="125px"></col>
									<col width="125px"></col>
									<col></col>
									<tbody>
										<tr>
										<th>会员\非会员</th>
										<th>是否会员</th>
										<th>储值金额</th>
										<th>付款日期</th>
										<th>最后使用日期</th>
										<th>剩余金额</th>
										<th>退款金额</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="125px"></col>
										<col width="125px"></col>
										<col width="125px"></col>
										<col width="125px"></col>
										<col width="125px"></col>
										<col width="125px"></col>
										<col></col>
										<c:forEach items="${brList }" var="item">
											<tr>
											<td>${item.PK_MEM_ID}</td>
											<td>${item.MEM_TYPE}</td>
											<td>${item.SUM_PRICE}</td>
											<td>${item.MODI_TIME}</td>
											<td>${item.PAY_TIME}</td>
											<td>${item.DIS_PRICE}</td>
											<td>${item.DIS_PRICE}</td>
											</tr>
										</c:forEach>
									</table>
								</div>
							</div>
							<h2 class="h2">过期余额</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="140px"></col>
									<col width="140px"></col>
									<col width="140px"></col>
									<col width="140px"></col>
									<col width="140px"></col>
									<col width="140px"></col>
									<col></col>
									<tbody>
										<tr>
										<th>会员\非会员</th>
										<th>是否会员</th>
										<th>储值金额</th>
										<th>付款日期</th>
										<th>最后使用日期</th>
										<th>余额失效日期</th>
										<th>剩余金额</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="140px"></col>
										<col width="140px"></col>
										<col width="140px"></col>
										<col width="140px"></col>
										<col width="140px"></col>
										<col width="140px"></col>
										<col></col>
										<c:forEach items="${brList }" var="item">
											<tr>
											<td>${item.PK_MEM_ID}</td>
											<td>${item.MEM_TYPE}</td>
											<td>${item.SUM_PRICE}</td>
											<td>${item.MODI_TIME}</td>
											<td>${item.PAY_TIME}</td>
											<td>${item.INVALID_DATE}</td>
											<td>${item.DIS_PRICE}</td>
											</tr>
										</c:forEach>
									</table>
								</div>
							</div>

						</li>
						<li class="p10" style="display: none;">
							<h2 class="h2">新增预约</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="150px"></col>
									<col width="150px"></col>
									<col width="150px"></col>
									<col width="150px"></col>
									<col width="150px"></col>
									<col></col>
									<tbody>
										<tr>
										<th>预约编号</th>
										<th>派对团体</th>
										<th>主题</th>
										<th>人数</th>
										<th>总金额</th>
										<th>已预付</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="150px"></col>
										<col width="150px"></col>
										<col width="150px"></col>
										<col width="150px"></col>
										<col width="150px"></col>
										<col></col>
										<c:forEach items="${ppList }" var="item">
											<tr>
											<td>${item.PK_PARRES_ID}</td>
											<td>${item.GRP_FLAG}</td>
											<td>${item.SUBJECT}</td>
											<td>${item.RES_MEM_CNT}</td>
											<td>${item.AMOUNT}</td>
											<td>${item.PAID_AMOUNT}</td>
											</tr>
										</c:forEach>
									</table>
								</div>
							</div>
							<h2 class="h2">更改预约</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="150px"></col>
									<col width="150px"></col>
									<col width="150px"></col>
									<col width="150px"></col>
									<col width="150px"></col>
									<col width="150px"></col>
									<col></col>
									<tbody>
										<tr>
										<th>预约编号</th>
										<th>派对团体</th>
										<th>主题</th>
										<th>人数</th>
										<th>总金额</th>
										<th>已预付</th>
										<th>重新预付</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="150px"></col>
										<col width="150px"></col>
										<col width="150px"></col>
										<col width="150px"></col>
										<col width="150px"></col>
										<col width="150px"></col>
										<col></col>
										<tbody id="reservationData"></tbody>
									</table>
								</div>
							</div>
							<h2 class="h2">派对团体结算</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="100px"></col>
									<col width="100px"></col>
									<col width="100px"></col>
									<col width="100px"></col>
									<col width="100px"></col>
									<col width="100px"></col>
									<col width="100px"></col>
									<col width="100px"></col>
									<col></col>
									<tbody>
										<tr>
										<th>预约编号</th>
										<th>派对团体</th>
										<th>主题</th>
										<th>人数</th>
										<th>总金额</th>
										<th>已预付</th>
										<th>结算金额</th>
										<th>装饰物金额</th>
										<th>表演类金额</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="100px"></col>
										<col width="100px"></col>
										<col width="100px"></col>
										<col width="100px"></col>
										<col width="100px"></col>
										<col width="100px"></col>
										<col width="100px"></col>
										<col width="100px"></col>
										<col></col>
										<tbody id="completedReservation">
											
										</tbody>
									</table>
								</div>
							</div>
							<h2 class="h2">取消预约</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="150px"></col>
									<col width="150px"></col>
									<col width="150px"></col>
									<col width="150px"></col>
									<col width="150px"></col>
									<col width="150px"></col>
									<col></col>
									<tbody>
										<tr>
											<th>预约编号</th>
											<th>派对团体</th>
											<th>主题</th>
											<th>人数</th>
											<th>总金额</th>
											<th>已预付</th>
											<th>违约金</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="150px"></col>
										<col width="150px"></col>
										<col width="150px"></col>
										<col width="150px"></col>
										<col width="150px"></col>
										<col width="150px"></col>
										<col></col>
										<tbody id="cancelReservation">
											
										</tbody>
									</table>
								</div>
							</div>
						</li>
						<li class="p10" style="display: none;">
							<h2 class="h2">新购课程</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="270px"></col>
									<col width="270px"></col>
									<col width="270px"></col>
									<col></col>
									<tbody>
										<tr>
											<th>课程名称</th>
											<th>总课时</th>
											<th>数量</th>
											<th>金额</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="270px"></col>
										<col width="270px"></col>
										<col width="270px"></col>
										<col></col>
										<tbody>
										<c:forEach items="${newCourseList }" var="course">
											<tr>
												<td>${course.courseName }</td>
												<td>${course.courseSum }</td>
												<td>${course.courseNum }</td>
												<td>${course.courseSumPrice }</td>
											</tr>
										</c:forEach>
										</tbody>
									</table>
								</div>
							</div>
							<h2 class="h2">签到课程</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="100px"></col>
									<col width="100px"></col>
									<col width="100px"></col>
									<col width="100px"></col>
									<col width="100px"></col>
									<col width="300px"></col>
									<col width="100px"></col>
									<col width="100px"></col>
									<col></col>
									<tbody>
										<tr>
											<th>学员编号</th>
											<th>学员姓名</th>
											<th>课程名称</th>
											<th>总价格</th>
											<th>总课时</th>
											<th>课程有效期</th>
											<th>今日签到课次</th>
											<th>剩余课次</th>
											<th>当日收入</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="100px"></col>
										<col width="100px"></col>
										<col width="100px"></col>
										<col width="100px"></col>
										<col width="100px"></col>
										<col width="300px"></col>
										<col width="100px"></col>
										<col width="100px"></col>
										<col></col>
										<tbody>
										<c:forEach items="${signCourseList }" var="course">
											<tr>
												<td>${course.cusNo }</td>
												<td>${course.cusName }</td>
												<td>${course.courseName }</td>
												<td>${course.price }</td>
												<td>${course.resiSumNum }</td>
												<td>${fn:substring(course.startDate,0,11)}至${fn:substring(course.endDate,0,11)}</td>
												<td>${course.crrentSignNum }</td>
												<td>${course.resiSumNum - course.signNum}</td>
												<td>${(course.price/course.resiSumNum)*course.crrentSignNum }</td>
											</tr>
										</c:forEach>
										</tbody>
									</table>
								</div>
							</div>
							<h2 class="h2">过期课程</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="100px"></col>
									<col width="100px"></col>
									<col width="100px"></col>
									<col width="100px"></col>
									<col width="100px"></col>
									<col width="300px"></col>
									<col width="100px"></col>
									<col width="100px"></col>
									<col></col>
									<tbody>
										<tr>
											<th>学员编号</th>
											<th>学员姓名</th>
											<th>课程名称</th>
											<th>价格</th>
											<th>总课时</th>
											<th>课程有效期</th>
											<th>总签到课次</th>
											<th>剩余课次</th>
											<th>剩余金额</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="100px"></col>
										<col width="100px"></col>
										<col width="100px"></col>
										<col width="100px"></col>
										<col width="100px"></col>
										<col width="300px"></col>
										<col width="100px"></col>
										<col width="100px"></col>
										<col></col>
										<tbody>
											<c:forEach items="${excendCourseList }" var="course">
											<tr>
												<td>${course.cusNo }</td>
												<td>${course.cusName }</td>
												<td>${course.courseName }</td>
												<td>${course.price }</td>
												<td>${course.courseSum }</td>
												<td>${course.startDate }至${course.endDate }</td>
												<td>${course.signNum }</td>
												<td>${course.courseSum-course.signNum}</td>
												<td>${(course.courseSum-course.signNum)*course.price }</td>
											</tr>
										</c:forEach>
										</tbody>
									</table>
								</div>
							</div>
						</li>
						<li class="p10" style="display: none;">
							<h2 class="h2">销售商品</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="220px"></col>
									<col width="220px"></col>
									<col width="220px"></col>
									<col></col>
									<tbody>
										<tr>
											<th>订单号</th>
											<th>订单金额</th>
											<th>储值付款金额</th>
											<th>现金付款金额</th>
											<th>银行卡付款金额</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="220px"></col>
										<col width="220px"></col>
										<col width="220px"></col>
										<col></col>
										<tbody>
											<c:forEach items="${saleList }" var="course">
												<tr>
													<td>${course.orderId }</td>
													<td>${course.orderPrice }</td>
													<td>${course.orderStored }</td>
													<td>${course.orderCash }</td>
													<td>${course.orderCard }</td>
												</tr>
											</c:forEach>
										</tbody>
									</table>
								</div>
							</div>
							<h2 class="h2">商品退货</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="220px"></col>
									<col width="220px"></col>
									<col width="220px"></col>
									<col></col>
									<tbody>
										<tr>
											<th>订单号</th>
											<th>退款金额</th>
											<th>储值付款金额</th>
											<th>现金付款金额</th>
											<th>银行卡付款金额</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="220px"></col>
										<col width="220px"></col>
										<col width="220px"></col>
										<col></col>
										<tbody>
											<c:forEach items="${returnList }" var="course">
												<tr>
													<td>${course.orderId }</td>
													<td>${course.orderPrice }</td>
													<td>${course.orderStored }</td>
													<td>${course.orderCash }</td>
													<td>${course.orderCard }</td>
												</tr>
											</c:forEach>
										</tbody>
									</table>
								</div>
							</div>
						</li>
						<li class="p10" style="display: none;">
							
							<h2 class="h2">礼券兑换</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="360px"></col>
									<col width="360px"></col>
									<col></col>
									<tbody>
										<tr>
											<th>会员</th>
											<th>礼券号码</th>
											<th>金额</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="360px"></col>
										<col width="360px"></col>
										<col></col>
										<tbody>
											<c:forEach items="${useCoupon }" var="course" >
												<tr>
													<td>${course.cusName }</td>
													<td>${course.orderCouponId }</td>
													<td>${course.price }</td>
												</tr>
											</c:forEach>
										</tbody>
									</table>
								</div>
							</div>
							<h2 class="h2">礼券超期未兑换</h2>
							<div id="scrollTable">
								<table class="table">
									<col width="500px"></col>
									<col></col>
									<tbody>
										<tr>
											<th>礼券号码</th>
											<th>金额</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="500px"></col>
										<col></col>
										<tbody>
											<c:forEach items="${overdueCoupon }" var="course" >
												<tr>
													<td>${course.orderCouponId }</td>
													<td>${course.price }</td>
												</tr>
											</c:forEach>
										</tbody>
									</table>
								</div>
							</div>
						</li>
						<%-- <li class="p10" style="display: none;">
							<div id="scrollTable">
								<table class="table">
									<col width="240px"></col>
									<col width="240px"></col>
									<col width="240px"></col>
									<col width="240px"></col>
									<col></col>
									<tbody>
										<tr>
											<th>采购订单</th>
											<th>支票号</th>
											<th>电汇票号</th>
											<th>货记票号</th>
											<th>应付金额</th>
										</tr>
									</tbody>
								</table>
								<div>
									<table class="table">
										<col width="240px"></col>
										<col width="240px"></col>
										<col width="240px"></col>
										<col width="240px"></col>
										<col></col>
										<tbody>
											<tr>
												<td>11111</td>
												<td></td>
												<td></td>
												<td></td>
												<td></td>
											</tr>
											<tr>
												<td>11111</td>
												<td></td>
												<td></td>
												<td></td>
												<td></td>
											</tr>
											<tr>
												<td>11111</td>
												<td></td>
												<td></td>
												<td></td>
												<td></td>
											</tr>
										</tbody>
									</table>
								</div>
							</div>

						</li> --%>
					</ul>
				</div>
			</div>
			<!---- 内容 --->
		</div>
	</div>


</body>
</html>



